package com.elink.enginerring.interceptor;
/**
 * 例外,不需要过滤或拦截的请求
 * @author hxjxiaojun
 *
 */
public class Except {
	static String[] resources={"/api/category/getTopCategory","/api/category/getSecondaryCategory","/api/category/getDetailCategory","/api/bostbar/getList",
		"/api/bostbar/getListByKeyWord","/api/bostbar/getPostbarList","api/bostbar/getPostbarOfIndex","api/bostbar/getReplyByUserId","/api/bostbar/getHotPostbar","/api/bostbar/getRelevant",
		"api/bostbar/getInfo","api/reply/updateSelect","/v2/api-docs"};
	
	/**
	 * 判断url是否是例外
	 * @param url
	 * @return
	 */
	static boolean isExcept(String url){
		boolean flag=false;
		for(String r:resources){
			if(url!=null&&url.endsWith(r)){
				flag=true;
				break;
			}
		}
		return flag;
	}
}
